package com.ywk.websocket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 *
 * @Author zbh
 * @Date 2023/2/20
 */
@SpringBootApplication
public class SpringWebsocketMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringWebsocketMainApplication.class,args);
    }

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
